<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FitnessMVCWeb.Controllers.BlogController+BlogViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= Model.blog.Title %></h2>

    <ul class="BlogPostList">
    <% foreach (var post in Model.miniPosts)
       {%>
        <li class="BlogPost">
            <h3><%= Html.Encode(post.Title) %></h3>
            <div class="contents">
                <%= Html.Encode(post.MiniContents) %>
            </div>
            <label><% Html.ActionLink("Read More...", "Details", post.PostId); %></label>
        </li>
    <% } %>
    </ul>

</asp:Content>

